'use strict'
import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: { dictCode }
  })
}

/**
 * 列表查询
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activity/registInfo/queryPageHelpRegistInfo',
    method: 'post',
    data
  })
}

export function maskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activity/registInfo/exportHelpRegistInfoMasking',
    method: 'post',
    responseType: 'blob',
    data
  })
}
export function noMaskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/activity/registInfo/exportHelpRegistInfoNoMasking',
    method: 'post',
    responseType: 'blob',
    data
  })
}
